package br.com.aeon.view.flex._componentes.color.text
{
	import mx.controls.Label;

	public class CustomTextItemRenderer4 extends Label {
		override public function set data(value:Object):void {
		 	if(value != null) {
		  		super.data = value;
		  	   	if(value.ptoJustificativaEntrada2 != null) {
		  	   		setStyle("color", 0xFF0000);
		  	   		setStyle("fontStyle", "italic");
				   	setStyle("fontWeight", "bold");
		  		} else {
		  			setStyle("color", 0x000000);
		  	   		setStyle("fontStyle", "normal");
				   	setStyle("fontWeight", "normal");
		  		}
	     	}
	  	}
	}
}